﻿<cfset jsonrepresent = StructNew() >
<cfset dataArr = arraynew(1) >

<cfset middlejson = structnew() >
<cfset middlejson['id'] = 1 >
<cfset middlejson['cid'] = 1 >
<cfset middlejson['title'] = "Bottom #url.startDate# - #url.endDate#" >
<cfset middlejson['start'] = "2014-03-02 22:26:34" >
<cfset middlejson['end'] = "2014-03-04 01:26:34" >
<cfset middlejson['rrule'] = "NA" >
<cfset middlejson['loc'] = "Makati" >
<cfset middlejson['notes'] = "Some Notes" >
<cfset middlejson['url'] = "http://www.google.com" >
<cfset middlejson['ad'] = "true" >
<cfset middlejson['rem'] = "None" >
<cfset dataArr[1] = middlejson >

<cfset middlejson = structnew() >
<cfset middlejson['id'] = 2 >
<cfset middlejson['cid'] = 2 >
<cfset middlejson['title'] = "Nice break" >
<cfset middlejson['start'] = "2014-03-03 22:26:34" >
<cfset middlejson['end'] = "2014-03-05 01:26:34" >
<cfset middlejson['rrule'] = "NA" >
<cfset middlejson['loc'] = "Makati" >
<cfset middlejson['notes'] = "Some Notes" >
<cfset middlejson['url'] = "http://www.google.com" >
<cfset middlejson['ad'] = "true" >
<cfset middlejson['rem'] = "At start time" >
<cfset dataArr[2] = middlejson >

<cfset middlejson = structnew() >
<cfset middlejson['id'] = 3 >
<cfset middlejson['cid'] = 3 >
<cfset middlejson['title'] = "Nice break" >
<cfset middlejson['start'] = "2014-03-10 22:26:34" >
<cfset middlejson['end'] = "2014-03-10 01:26:34" >
<cfset middlejson['rrule'] = "NA" >
<cfset middlejson['loc'] = "Makati" >
<cfset middlejson['notes'] = "Some Notes" >
<cfset middlejson['url'] = "http://www.google.com" >
<cfset middlejson['ad'] = "true" >
<cfset middlejson['rem'] = 4 >
<cfset dataArr[3] = middlejson >

<cfset middlejson = structnew() >
<cfset middlejson['id'] = 5 >
<cfset middlejson['cid'] = 5 >
<cfset middlejson['title'] = "#url.startDate# - #url.endDate#" >
<cfset middlejson['start'] = "2014-04-10 22:26:34" >
<cfset middlejson['end'] = "2014-04-10 01:26:34" >
<cfset middlejson['rrule'] = "NA" >
<cfset middlejson['loc'] = "Makati" >
<cfset middlejson['notes'] = "Some Notes" >
<cfset middlejson['url'] = "http://www.google.com" >
<cfset middlejson['ad'] = "true" >
<cfset middlejson['rem'] = 4 >
<cfset dataArr[4] = middlejson >

<cfset jsonrepresent['data'] = dataArr >
<cfset jsonData = serializeJSON(jsonrepresent) >
<cfoutput>#jsonData#</cfoutput>

<cfsetting showdebugoutput="false" >